<?php

namespace app\common\service\freight;


use app\admin\model\freight\ExpressCity;
use app\common\service\BaseService;
use think\facade\Cache;

class CityService extends BaseService
{


    public static function getCityList($pid)
    {
        $data = ExpressCity::where('pid', $pid)->select();
        $data && $data = $data->toArray();
        return self::success('获取成功', $data);
    }

    public static function sonArr()
    {
        $data = ExpressCity::select();
        $data && $data = $data->toArray();
        $data = getSon($data);
        $res = three($data);
        return self::success('成功', $res);
    }


}